package com.syq.play.adapter;

import java.util.List;

import com.syq.play.model.FolderModel;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;

public abstract class FolderAdapter extends BaseAdapter{
	protected Context context;
	protected LayoutInflater mInflater;
	protected List<FolderModel> listData;
	public FolderAdapter(Context context, List<FolderModel> listData){
		this.context=context;
		this.listData=listData;
		this.mInflater=LayoutInflater.from(context);
	}
	public void updateListData(List<FolderModel> listData){
		this.listData=listData;
		this.notifyDataSetChanged();
	}
	public List<FolderModel> getListData(){
		return listData;
	}
	public int getCount() {
		return listData.size();
	}

	public Object getItem(int arg0) {
		return arg0;
	}

	public long getItemId(int arg0) {
		return arg0;
	}
	public abstract View getView(int arg0, View arg1, ViewGroup arg2);

}
